#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<stdlib.h>
int main()
{
	char *arr1 = "hello world", *arr2 = (char *)malloc(sizeof(char));
	int len = 0, left = 0, right = 0, i = 0;

	len = strlen(arr1);
	left = 0;
	right = len-1;
	for(i = 0;i < len;i++)
	{
		arr2[i] = '#';
	}
	
	while(left<=right)
	{
		system("cls");
		arr2[left] = arr1[left];
		arr2[right] = arr1[right];
		printf("%s\n", arr2);
		sleep(1);
		left++;
		right--;
	}
}
